<?php


require "database.php";

$____s____=$_POST['s'];


$____s____=explode("Row:", $____s____);

$a=[];
$p=0;
for ($i=0; $i < count($____s____); $i++) { 
	// if(count($____s____[$i])<2){
	// 	continue;
	// }
	$a[$p]=explode(",",$____s____[$i]);

	$a[$p][6]=explode("=",$a[$p][6])[1];
	$a[$p][11]=explode("=",$a[$p][11])[1];
	$p++;
}
unset($a[0]);
$c=[];
for ($i=0; $i < count($a); $i++) { 
	if($a[$i]){
		$c[]=$a[$i];
	}
	
}

// file_put_contents("abc.txt",json_encode($c,JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT));

echo json_encode($c,JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT);


